home *** CD-ROM | disk | FTP | other *** search
/ The Mac 13 / the-mac-13.iso / On The Rom / 100 Best Mac CD-ROMs Selection / The Treasure Hunt / thpb.Dxr / 00047.ls < prev    next >
Encoding:
Text File  |  1994-09-16  |  5.0 KB  |  166 lines

  1. on colourinskelly
  2.   global colour
  3.   set skull to the foreColor of sprite 21
  4.   set ribs to the foreColor of sprite 22
  5.   set rarm to the foreColor of sprite 23
  6.   set larm to the foreColor of sprite 24
  7.   set rleg to the foreColor of sprite 25
  8.   set lleg to the foreColor of sprite 26
  9.   set the castNum of sprite 29 to the castNum of sprite the clickOn
  10.   puppetSound("paint")
  11.   cursor(200)
  12.   set lastRoll to 48
  13.   set lastcol to 0
  14.   repeat while the mouseDown
  15.     set the locH of sprite 48 to the mouseH
  16.     set the locV of sprite 48 to the mouseV
  17.     if (lastRoll <> 48) and not rollOver(lastRoll) then
  18.       set the foreColor of sprite (lastRoll + 9) to lastcol
  19.       set lastRoll to 48
  20.       set lastcol to 0
  21.     end if
  22.     repeat with l = 12 to 17
  23.       if rollOver(l) then
  24.         if lastRoll <> l then
  25.           set lastcol to the foreColor of sprite (l + 9)
  26.           set the foreColor of sprite (l + 9) to colour
  27.           puppetSound("contact")
  28.           set lastRoll to l
  29.         end if
  30.       end if
  31.     end repeat
  32.     updateStage()
  33.   end repeat
  34.   set the locH of sprite 48 to -90
  35.   set the locH of sprite 48 to -90
  36.   puppetSound(0)
  37.   updateStage()
  38.   cursor(-1)
  39. end
  40.  
  41. on colourinmonster
  42.   global colour
  43.   set body to the foreColor of sprite 21
  44.   set leg1 to the foreColor of sprite 22
  45.   set leg2 to the foreColor of sprite 23
  46.   set leg3 to the foreColor of sprite 24
  47.   set head to the foreColor of sprite 25
  48.   set the castNum of sprite 29 to the castNum of sprite the clickOn
  49.   puppetSound("paint")
  50.   cursor(200)
  51.   set lastRoll to 48
  52.   set lastcol to 0
  53.   repeat while the mouseDown
  54.     set the locH of sprite 48 to the mouseH
  55.     set the locV of sprite 48 to the mouseV
  56.     if (lastRoll <> 48) and not rollOver(lastRoll) then
  57.       if lastRoll = 17 then
  58.         set the foreColor of sprite 21 to lastcol
  59.       else
  60.         set the foreColor of sprite (lastRoll + 9) to lastcol
  61.       end if
  62.       set lastRoll to 48
  63.       set lastcol to 0
  64.     end if
  65.     repeat with l = 12 to 16
  66.       if rollOver(l) then
  67.         if lastRoll <> l then
  68.           set lastcol to the foreColor of sprite (l + 9)
  69.           set the foreColor of sprite (l + 9) to colour
  70.           puppetSound("contact")
  71.           set lastRoll to l
  72.         end if
  73.       end if
  74.     end repeat
  75.     if rollOver(17) and (lastRoll <> 17) then
  76.       set l to 12
  77.       set lastcol to the foreColor of sprite (l + 9)
  78.       set the foreColor of sprite (l + 9) to colour
  79.       puppetSound("contact")
  80.       set lastRoll to 17
  81.     end if
  82.     updateStage()
  83.   end repeat
  84.   set the locH of sprite 48 to -90
  85.   set the locH of sprite 48 to -90
  86.   updateStage()
  87.   cursor(-1)
  88. end
  89.  
  90. on colourinnelson
  91.   global colour
  92.   set head to the foreColor of sprite 21
  93.   set body to the foreColor of sprite 22
  94.   set tail to the foreColor of sprite 23
  95.   set iwing to the foreColor of sprite 24
  96.   set owing to the foreColor of sprite 25
  97.   set the castNum of sprite 29 to the castNum of sprite the clickOn
  98.   puppetSound("paint")
  99.   cursor(200)
  100.   set lastRoll to 48
  101.   set lastcol to 0
  102.   repeat while the mouseDown
  103.     set the locH of sprite 48 to the mouseH
  104.     set the locV of sprite 48 to the mouseV
  105.     if (lastRoll <> 48) and not rollOver(lastRoll) then
  106.       if (lastRoll = 17) or (lastRoll = 18) then
  107.         set the foreColor of sprite 25 to lastcol
  108.       else
  109.         if (lastRoll = 15) or (lastRoll = 16) then
  110.           set the foreColor of sprite 24 to lastcol
  111.         else
  112.           set the foreColor of sprite (lastRoll + 9) to lastcol
  113.         end if
  114.       end if
  115.       set lastRoll to 48
  116.       set lastcol to 0
  117.     end if
  118.     if (lastRoll = 17) or (lastRoll = 18) then
  119.       if rollOver(lastRoll) and rollOver(lastRoll - 2) then
  120.         set the foreColor of sprite 25 to lastcol
  121.         set lastRoll to 48
  122.         set lastcol to 0
  123.       end if
  124.     end if
  125.     repeat with l = 12 to 14
  126.       if rollOver(l) then
  127.         if lastRoll <> l then
  128.           set lastcol to the foreColor of sprite (l + 9)
  129.           set the foreColor of sprite (l + 9) to colour
  130.           puppetSound("contact")
  131.           set lastRoll to l
  132.         end if
  133.       end if
  134.     end repeat
  135.     if rollOver(15) and (lastRoll <> 15) then
  136.       set lastcol to the foreColor of sprite 24
  137.       set the foreColor of sprite 24 to colour
  138.       puppetSound("contact")
  139.       set lastRoll to 15
  140.     end if
  141.     if rollOver(16) and (lastRoll <> 16) then
  142.       set lastcol to the foreColor of sprite 24
  143.       set the foreColor of sprite 24 to colour
  144.       puppetSound("contact")
  145.       set lastRoll to 16
  146.     end if
  147.     if rollOver(17) and (lastRoll <> 17) and not rollOver(15) then
  148.       set lastcol to the foreColor of sprite 25
  149.       set the foreColor of sprite 25 to colour
  150.       puppetSound("contact")
  151.       set lastRoll to 17
  152.     end if
  153.     if rollOver(18) and (lastRoll <> 18) and not rollOver(16) then
  154.       set lastcol to the foreColor of sprite 25
  155.       set the foreColor of sprite 25 to colour
  156.       puppetSound("contact")
  157.       set lastRoll to 18
  158.     end if
  159.     updateStage()
  160.   end repeat
  161.   set the locH of sprite 48 to -90
  162.   set the locH of sprite 48 to -90
  163.   updateStage()
  164.   cursor(-1)
  165. end
  166.